import './assets/main.css'
import App from './App.vue'
import { createApp } from 'vue'
import { createPinia } from 'pinia';
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
import * as Icons from '@element-plus/icons'; // 引入所有图标
import router from "@/router/router.js";


const pinia = createPinia();
const app = createApp(App)
app.use(router); // 使用路由

// 注册所有图标
for (const [key, component] of Object.entries(Icons)) {
    app.component(key, component);
}

app.use(ElementPlus);
app.use(pinia);


app.mount('#app')